package com.anxinr.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单信息
 * @author anxinr
 */
@ToString
@Data
@TableName("order")
public class Order implements Serializable {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Long id ;
    @ApiModelProperty("用户id")
    private Long userId ;
    @ApiModelProperty("用户名称")
    private String userName ;
    @ApiModelProperty("用户手机号")
    private String userPhone ;
    @ApiModelProperty("订单编号")
    private String orderNo ;
    @ApiModelProperty("配送地址")
    private String addr ;
    @ApiModelProperty("订单状态")
    private Integer status ;
    @ApiModelProperty("门店id")
    private Long shopId ;
    @ApiModelProperty("门店名称")
    private String shopName ;
    @ApiModelProperty("下单时间")
    private Date createTime ;
    @ApiModelProperty("到货时间")
    private Date endTime ;
}
